package com.crt.uav;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import com.crt.uav.rabbitmq.consumer.UavJMRabbitMqConsumer;

@SpringBootApplication
public class UavApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext run = SpringApplication.run(UavApplication.class, args);;
		// 启动 RabbitMQ 消息监听器
		UavJMRabbitMqConsumer uavJMRabbitMqConsumer = run.getBean(UavJMRabbitMqConsumer.class);
		uavJMRabbitMqConsumer.startJmRabbitMqListeners();
	}

}
